package com.zhanglinfeng.zuul;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

/**
 * 访问需要带上 项目的Application 例如：localhost:1003/eureka-feign-hystrix/test
 */
@EnableZuulProxy //开启Zuul的功能
@EnableDiscoveryClient//向服务中心注册
@SpringBootApplication
public class ZuulApplication1003 {

    public static void main(String[] args) {
        SpringApplication.run(ZuulApplication1003.class, args);
    }
}
